<div class="row">
    <div class="col-lg-12">
        <div class="ibox">
            <div class="ibox-title">
                <h5><span><vc:i18n name="编辑" namespace="newOaWorkflowFormEdit"></vc:i18n></span></h5>
                <div class="ibox-tools" style="top:10px;">

                </div>
            </div>
            <div class="ibox-content">
                <div v-for="(item,index) in newOaWorkflowFormEditInfo.components">
                    <div class="form-group row" v-if="item.type== 'textfield'">
                        <label class="col-sm-2 col-form-label">{{item.label}}</label>
                        <div class="col-sm-10">
                            <input v-model="item.value" type="text" :placeholder="item.description" class="form-control">
                        </div>
                    </div>
                    <div class="form-group row" v-if="item.type== 'number'">
                        <label class="col-sm-2 col-form-label">{{item.label}}</label>
                        <div class="col-sm-10">
                            <input v-model="item.value" type="number" :placeholder="item.description" class="form-control">
                        </div>
                    </div>
                    <div class="form-group row" v-if="item.type== 'textarea'">
                        <label class="col-sm-2 col-form-label">{{item.label}}</label>
                        <div class="col-sm-10">
                            <textarea v-model="item.value" :placeholder="item.description"></textarea>
                        </div>
                    </div>
                    <div class="form-group row" v-if="item.type== 'textdate'">
                        <label class="col-sm-2 col-form-label">{{item.label}}</label>
                        <div class="col-sm-10">
                            <input v-model="item.value" type="date" :placeholder="item.description" class="form-control">
                        </div>
                    </div>
                    <div class="form-group row" v-if="item.type== 'textdatetime'">
                        <label class="col-sm-2 col-form-label">{{item.label}}</label>
                        <div class="col-sm-10">
                            <input v-model="item.value" type="time" :placeholder="item.description" class="form-control">
                        </div>
                    </div>

                    <div class="form-group row" v-if="item.type== 'checkbox'">
                        <label class="col-sm-2 col-form-label">{{item.label}}</label>
                        <div class="col-sm-10">
                            <div class="checkbox custom-control-inline">
                                <label>
                                    <input type="checkbox" v-model="item.value"
                                           :value="item.value">{{item.label}}
                                </label>
                            </div>
                        </div>
                    </div>
                </div>
                <vc:create path="frame/uploadFile" callBackListener="newOaWorkflowFormEdit" callBackFunction="fileName" namespace="newOaWorkflowFormEdit">
                </vc:create>
                <div class="ibox-content">
                    <button class="btn btn-primary float-right" type="button" v-on:click="_submitFormData()"><i
                            class="fa fa-check"></i>&nbsp;提交
                    </button>
                    <button type="button" class="btn btn-warning float-right" style="margin-right:20px;" v-on:click="closeEditInfo()"><span><vc:i18n name="取消" namespace="newOaWorkflowFormEdit"></vc:i18n></span>
                    </button>
                </div>

            </div>
        </div>
    </div>
</div>
